﻿using System;
namespace DataBindingScript
{
    [Imported]
    public class IDataBinding
    {
        public void BindData(JsonResult dataJson, string parentId) { }
        [AlternateSignature]
        public extern void GetData(string href, string parentId);
        [AlternateSignature]
        public extern void GetData(string href, string parentId, GenericOneArgDelegate onSuccess);
        public void GetData(string href, string parentId, GenericOneArgDelegate onSuccess, SimpleDelegate onDeny) { }
        [AlternateSignature]
        public extern void PostData(string href, string parentId);
        [AlternateSignature]
        public extern void PostData(string href, string parentId, GenericOneArgDelegate onSuccess);
        public void PostData(string href, string parentId, GenericOneArgDelegate onSuccess, SimpleDelegate onDeny) { }
    }
}
